<?php $this->fetch('public/head') ?>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li ><a href="<?php echo url('cate') ?>">新闻分类</a></li>
            <li class="layui-this"><a href="<?php echo url('editcate') ?>">编辑分类</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="<?php echo url('editcate') ?>" method="post">

                    <div class="layui-form-item">
                        <label class="layui-form-label">分类名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" value="<?php echo $rows['name'] ?>" required  lay-verify="required" placeholder="请输入分类名称" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="isen" value="0" title="中文分类" <?php if($rows['isen']!=1){ ?>checked="checked"<?php } ?>>
                            <input type="radio" name="isen" value="1" title="英文分类" <?php if($rows['isen']==1){ ?>checked="checked"<?php } ?>>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input type="text" name="weight" value="<?php echo $rows['weight'] ?>" required  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <input type="hidden" name="id" value="<?php echo $rows['id'] ?>">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $this->fetch('public/script') ?>